export function getThisWeekTime() {
  const now = new Date();
  const dayOfWeek = now.getDay();
  const dayOffset = dayOfWeek === 0 ? -6 : 1 - dayOfWeek;

  const monday = new Date(now);
  monday.setDate(monday.getDate() + dayOffset);

  const sunday = new Date(monday);
  sunday.setDate(sunday.getDate() + 6);

  var startDateString = monday.toISOString().split("T")[0];
  var endDateString = sunday.toISOString().split("T")[0];

  // console.log(startDateString + " - " + endDateString, 1);
  return [startDateString, endDateString];
}
